package com.youkeyi.ddy.cloud.common.api.basic.pub.ad;

import com.youkeyi.ddy.cloud.common.api.basic.pub.ad.dto.PublicAdAreaListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.ad.dto.PublicAdCityListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.ad.dto.PublicAdProvinceListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.ad.param.PublicAdAreaQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.ad.param.PublicAdCityQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.ad.param.PublicAdProvinceQueryCloudParam;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * PublicAdCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/19 2:32 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/public/ad/fallback")
public class PublicAdCloudServiceFallback implements PublicAdCloudService {

    @Override
    public PublicAdProvinceListCloudDto queryProvince(PublicAdProvinceQueryCloudParam param) {
        return new PublicAdProvinceListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public PublicAdCityListCloudDto queryCity(PublicAdCityQueryCloudParam param) {
        return new PublicAdCityListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public PublicAdAreaListCloudDto queryArea(PublicAdAreaQueryCloudParam param) {
        return new PublicAdAreaListCloudDto(Boolean.FALSE, "服务不可用");
    }
}
